<!DOCTYPE html>






  


<html class="theme-next mist use-motion" lang="zh-CN">
<head>
  <!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">












<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />






















<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.2.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.2.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.2.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.2.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.2.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '6.2.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="Java底层知识 字节码、class文件格式 CPU缓存，L1，L2，L3和伪共享 尾递归 位运算 用位运算实现加、减、乘、除、取余  设计模式了解23种设计模式会使用常用设计模式单例、策略、工厂、适配器、责任链。 实现AOP实现IOC不用synchronized和lock，实现线程安全的单例模式nio和reactor设计模式网络编程tcp、udp、http、https等常用协议三次握手与四次关闭">
<meta property="og:type" content="article">
<meta property="og:title" content="java进阶">
<meta property="og:url" content="http://pentay.gitee.com/2018/05/12/java-adv/index.html">
<meta property="og:site_name" content="路边摊">
<meta property="og:description" content="Java底层知识 字节码、class文件格式 CPU缓存，L1，L2，L3和伪共享 尾递归 位运算 用位运算实现加、减、乘、除、取余  设计模式了解23种设计模式会使用常用设计模式单例、策略、工厂、适配器、责任链。 实现AOP实现IOC不用synchronized和lock，实现线程安全的单例模式nio和reactor设计模式网络编程tcp、udp、http、https等常用协议三次握手与四次关闭">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2018-05-12T02:27:13.927Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="java进阶">
<meta name="twitter:description" content="Java底层知识 字节码、class文件格式 CPU缓存，L1，L2，L3和伪共享 尾递归 位运算 用位运算实现加、减、乘、除、取余  设计模式了解23种设计模式会使用常用设计模式单例、策略、工厂、适配器、责任链。 实现AOP实现IOC不用synchronized和lock，实现线程安全的单例模式nio和reactor设计模式网络编程tcp、udp、http、https等常用协议三次握手与四次关闭">






  <link rel="canonical" href="http://pentay.gitee.com/2018/05/12/java-adv/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>java进阶 | 路边摊</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript><!-- hexo-inject:begin --><!-- hexo-inject:end -->

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">

  
  
    
  

  <!-- hexo-inject:begin --><!-- hexo-inject:end --><div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">路边摊</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button aria-label="切换导航栏">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>




<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />首页</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />标签</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-categories">
    <a href="/categories/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-th"></i> <br />分类</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />归档</a>
  </li>

      
      
    </ul>
  

  
    

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://pentay.gitee.com/2018/05/12/java-adv/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="易言">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="路边摊">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">java进阶
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              

              
                
              

              <time title="创建时间：2018-05-12 10:24:33 / 修改时间：10:27:13" itemprop="dateCreated datePublished" datetime="2018-05-12T10:24:33+08:00">2018-05-12</time>
            

            
              

              
            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="Java底层知识"><a href="#Java底层知识" class="headerlink" title="Java底层知识"></a>Java底层知识</h1><ul>
<li>字节码、class文件格式</li>
<li>CPU缓存，L1，L2，L3和伪共享</li>
<li>尾递归</li>
<li>位运算</li>
<li>用位运算实现加、减、乘、除、取余</li>
</ul>
<p>设计模式<br>了解23种设计模式<br>会使用常用设计模式<br>单例、策略、工厂、适配器、责任链。</p>
<p>实现AOP<br>实现IOC<br>不用synchronized和lock，实现线程安全的单例模式<br>nio和reactor设计模式<br>网络编程<br>tcp、udp、http、https等常用协议<br>三次握手与四次关闭、流量控制和拥塞控制、OSI七层模型、tcp粘包与拆包</p>
<p>http/1.0 http/1.1 http/2之前的区别<br>Java RMI，Socket，HttpClient<br>cookie 与 session<br>cookie被禁用，如何实现session</p>
<p>用Java写一个简单的静态文件的HTTP服务器<br>实现客户端缓存功能，支持返回304 实现可并发下载一个文件 使用线程池处理客户端请求 使用nio处理客户端请求 支持简单的rewrite规则 上述功能在实现的时候需要满足“开闭原则”</p>
<p>了解nginx和apache服务器的特性并搭建一个对应的服务器<br>用Java实现FTP、SMTP协议<br>进程间通讯的方式<br>什么是CDN？如果实现？<br>什么是DNS？<br>反向代理<br>框架知识<br>Servlet线程安全问题<br>Servlet中的filter和listener<br>Hibernate的缓存机制<br>Hiberate的懒加载<br>Spring Bean的初始化<br>Spring的AOP原理<br>自己实现Spring的IOC<br>Spring MVC<br>Spring Boot2.0<br>Spring Boot的starter原理，自己实现一个starter</p>
<p>Spring Security<br>应用服务器<br>JBoss<br>tomcat<br>jetty<br>Weblogic<br>工具<br>git &amp; svn<br>maven &amp; gradle</p>
<p>三、 高级篇<br>新技术<br>Java 8<br>lambda表达式、Stream API、</p>
<p>Java 9<br>Jigsaw、Jshell、Reactive Streams</p>
<p>Java 10<br>局部变量类型推断、G1的并行Full GC、ThreadLocal握手机制</p>
<p>Spring 5<br>响应式编程</p>
<p>Spring Boot 2.0<br>性能优化<br>使用单例、使用Future模式、使用线程池、选择就绪、减少上下文切换、减少锁粒度、数据压缩、结果缓存</p>
<p>线上问题分析<br>dump获取<br>线程Dump、内存Dump、gc情况</p>
<p>dump分析<br>分析死锁、分析内存泄露</p>
<p>自己编写各种outofmemory，stackoverflow程序<br>HeapOutOfMemory、 Young OutOfMemory、MethodArea OutOfMemory、ConstantPool OutOfMemory、DirectMemory OutOfMemory、Stack OutOfMemory Stack OverFlow</p>
<p>常见问题解决思路<br>内存溢出、线程死锁、类加载冲突</p>
<p>使用工具尝试解决以下问题，并写下总结<br>当一个Java程序响应很慢时如何查找问题、</p>
<p>当一个Java程序频繁FullGC时如何解决问题、</p>
<p>如何查看垃圾回收日志、</p>
<p>当一个Java应用发生OutOfMemory时该如何解决、</p>
<p>如何判断是否出现死锁、</p>
<p>如何判断是否存在内存泄露</p>
<p>编译原理知识<br>编译与反编译<br>Java代码的编译与反编译<br>Java的反编译工具<br>词法分析，语法分析（LL算法，递归下降算法，LR算法），语义分析，运行时环境，中间代码，代码生成，代码优化<br>操作系统知识<br>Linux的常用命令<br>进程同步<br>缓冲区溢出<br>分段和分页<br>虚拟内存与主存<br>数据库知识<br>MySql 执行引擎<br>MySQL 执行计划<br>如何查看执行计划，如何根据执行计划进行SQL优化</p>
<p>SQL优化<br>事务<br>事务的隔离级别、事务能不能实现锁的功能</p>
<p>数据库锁<br>行锁、表锁、使用数据库锁实现乐观锁、</p>
<p>数据库主备搭建<br>binlog<br>内存数据库<br>h2</p>
<p>常用的nosql数据库<br>redis、memcached</p>
<p>分别使用数据库锁、NoSql实现分布式锁<br>性能调优<br>数据结构与算法知识<br>简单的数据结构<br>栈、队列、链表、数组、哈希表、</p>
<p>树<br>二叉树、字典树、平衡树、排序树、B树、B+树、R树、多路树、红黑树</p>
<p>排序算法<br>各种排序算法和时间复杂度 深度优先和广度优先搜索 全排列、贪心算法、KMP算法、hash算法、海量数据处理</p>
<p>大数据知识<br>Zookeeper<br>基本概念、常见用法</p>
<p>Solr，Lucene，ElasticSearch<br>在linux上部署solr，solrcloud，，新增、删除、查询索引</p>
<p>Storm，流式计算，了解Spark，S4<br>在linux上部署storm，用zookeeper做协调，运行storm hello world，local和remote模式运行调试storm topology。</p>
<p>Hadoop，离线计算<br>HDFS、MapReduce</p>
<p>分布式日志收集flume，kafka，logstash<br>数据挖掘，mahout<br>网络安全知识<br>什么是XSS<br>XSS的防御</p>
<p>什么是CSRF<br>什么是注入攻击<br>SQL注入、XML注入、CRLF注入</p>
<p>什么是文件上传漏洞<br>加密与解密<br>MD5，SHA1、DES、AES、RSA、DSA</p>
<p>什么是DOS攻击和DDOS攻击<br>memcached为什么可以导致DDos攻击、什么是反射型DDoS</p>
<p>SSL、TLS，HTTPS<br>如何通过Hash碰撞进行DOS攻击<br>用openssl签一个证书部署到apache或nginx</p>
<p>四、架构篇<br>分布式<br>数据一致性、服务治理、服务降级</p>
<p>分布式事务<br>2PC、3PC、CAP、BASE、 可靠消息最终一致性、最大努力通知、TCC</p>
<p>Dubbo<br>服务注册、服务发现，服务治理</p>
<p>分布式数据库<br>怎样打造一个分布式数据库、什么时候需要分布式数据库、mycat、otter、HBase</p>
<p>分布式文件系统<br>mfs、fastdfs</p>
<p>分布式缓存<br>缓存一致性、缓存命中率、缓存冗余</p>
<p>微服务<br>SOA、康威定律</p>
<p>ServiceMesh<br>Docker &amp; Kubernets<br>Spring Boot<br>Spring Cloud<br>高并发<br>分库分表<br>CDN技术<br>消息队列<br>ActiveMQ</p>
<p>监控<br>监控什么<br>CPU、内存、磁盘I/O、网络I/O等</p>
<p>监控手段<br>进程监控、语义监控、机器资源监控、数据波动</p>
<p>监控数据采集<br>日志、埋点</p>
<p>Dapper<br>负载均衡<br>tomcat负载均衡、Nginx负载均衡</p>
<p>DNS<br>DNS原理、DNS的设计</p>
<p>CDN<br>数据一致性</p>
<p>五、 扩展篇<br>云计算<br>IaaS、SaaS、PaaS、虚拟化技术、openstack、Serverlsess</p>
<p>搜索引擎<br>Solr、Lucene、Nutch、Elasticsearch</p>
<p>权限管理<br>Shiro</p>
<p>区块链<br>哈希算法、Merkle树、公钥密码算法、共识算法、Raft协议、Paxos 算法与 Raft 算法、拜占庭问题与算法、消息认证码与数字签名</p>
<p>比特币<br>挖矿、共识机制、闪电网络、侧链、热点问题、分叉</p>
<p>以太坊<br>超级账本<br>人工智能<br>数学基础、机器学习、人工神经网络、深度学习、应用场景。</p>
<p>常用框架<br>TensorFlow、DeepLearning4J</p>

      
    </div>

    

    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/05/12/java-base/" rel="next" title="java基础">
                <i class="fa fa-chevron-left"></i> java基础
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/05/12/java-exp/" rel="prev" title="java进阶">
                java进阶 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">易言</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">15</span>
                    <span class="site-state-item-name">日志</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">3</span>
                    <span class="site-state-item-name">分类</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">7</span>
                    <span class="site-state-item-name">标签</span>
                  </a>
                </div>
              
            </nav>
          

          

          

          
          

          
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#Java底层知识"><span class="nav-number">1.</span> <span class="nav-text">Java底层知识</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">易言</span>

  

  
</div>




  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动 v3.7.1</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/theme-next/hexo-theme-next">NexT.Mist</a> v6.2.0</div>




        








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>


























  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.2.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.2.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.2.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.2.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.2.0"></script>



  



	





  





  










  





  

  

  

  
  

  
  

  
    
      <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
        for (i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
        }
    });
</script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/mathjax@2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><!-- hexo-inject:begin --><!-- Begin: Injected MathJax -->
<script type="text/x-mathjax-config">
  MathJax.Hub.Config("");
</script>

<script type="text/x-mathjax-config">
  MathJax.Hub.Queue(function() {
    var all = MathJax.Hub.getAllJax(), i;
    for(i=0; i < all.length; i += 1) {
      all[i].SourceElement().parentNode.className += ' has-jax';
    }
  });
</script>

<script type="text/javascript" src="">
</script>
<!-- End: Injected MathJax -->
<!-- hexo-inject:end -->

    
  


  
  

  

  

  

  

  

</body>
</html>
